﻿using Dapper.Database;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BookStores.IDomain
{
    /// <summary>
    /// 国家信息
    /// </summary>
    public interface ICountry : Shared.Contracts.IDependency
    {
        /// <summary>
        /// 根据关键字搜索国家列表
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<IEnumerable<BookStores.Entity.Country>> GetCountries(string name,int pageIndex=1,int pageSize=10);
    }
}
